import http from "@/plugins/axios"

export function getTime() {
    return http.get<number>({ url: '/time' })
}

export function getHolidays() {
    return http.get<HolidayResponse>({ url: '/holidays' })
}

export function getCaptcha() {
    return http.get<CaptchaResponse>({ url: '/captcha' })
}

// 获取系统信息
export function getSystem() {
    return http.get<SystemModel>({ url: '/system' })
}
// 记录访问量
export function setVisit(url: string) {
    return http.get({ url: '/visit?url=' + url })
}